package com.lebang.medicalInquiry.constant;


/**
 * 话术类型枚举
 */
public enum VerbalTrickEnum {


    // 成功段0
    category("category", "品类话术"),

    // 登录段1~50
    answers("answers", "问答话术库"),

    comment("comment", "评论话术库"),

    interest("interest", "趣味话术库"),

    // TOKEN600
    time("time", "报时话术数量"),

    entrance("entrance", "进场话术数量"),

    number("number", "报数话术数量");

    String code;
    String remark;

    VerbalTrickEnum(String code, String remark) {
        this.code = code;
        this.remark = remark;
    }

    public String getCode() {
        return code;
    }

    public String getRemark() {
        return remark;
    }

    public static  boolean isExist(String code) {

        for (VerbalTrickEnum value : values()) {
            if (value.getCode().equals(code)) {
                return true;
            }
        }
        return false;
    }



}
